
using UnityEngine;
namespace HotUpdate
{
    public class IntEqualTogglePropertyAttribute : PropertyAttribute
    {
        private string m_CheckIntPropertyName;
        private int m_TargetValue;
        private bool m_Invert;
        /// <summary>
        /// 根据相关字段判断是否要展示
        /// </summary>
        /// <param name="checkIntPropertyName">相关字段</param>
        /// <param name="invert">翻转结果</param>
        public IntEqualTogglePropertyAttribute(string checkIntPropertyName,int targetValue,bool invert=false)
        {
            m_CheckIntPropertyName = checkIntPropertyName;
            m_TargetValue = targetValue;
            m_Invert = invert;
        }
        public string CheckFieldName => m_CheckIntPropertyName;
        public int TargetValue => m_TargetValue;
        public bool Invert=>m_Invert;
    }
}

